<script setup lang="ts">
import CustomNavbar from './components/customNavbar.vue'
import { getHomeBannerApi } from '@/services/home'
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import type { BanneraItem } from '../../types/home'
const bannerList = ref<BanneraItem[]>([])
const getHomeBannerData = async () => {
  let res = await getHomeBannerApi()
  bannerList.value = res.result
}
onLoad(() => {
  getHomeBannerData()
})
</script>

<template>
  <customNavbar />
  <XtxSwiper :bannerList="bannerList" />
  <view class="index"> </view>
</template>

<style lang="scss"></style>
